package com.base.service.impl;

import com.base.mapper.voipmapper.RechargeProfitMapper;
import com.base.po.voip.RechargeProfit;
import com.base.po.voip.RechargeProfitExample;
import com.base.service.RechargeProfitService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service("RechargeProfit")
public class RechargeProfitServiceImpl implements RechargeProfitService {
    @Autowired
    RechargeProfitMapper rechargeProfitMapper;
    @Override
    public int countByExample(RechargeProfitExample example) {
        return rechargeProfitMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(RechargeProfitExample example) {
        return rechargeProfitMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return rechargeProfitMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(RechargeProfit record) {
        return rechargeProfitMapper.insert(record);
    }

    @Override
    public int insertSelective(RechargeProfit record) {
        return rechargeProfitMapper.insertSelective(record);
    }

    @Override
    public List<RechargeProfit> selectByExample(RechargeProfitExample example) {
        return rechargeProfitMapper.selectByExample(example);
    }

    @Override
    public RechargeProfit selectByPrimaryKey(Integer id) {
        return rechargeProfitMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(RechargeProfit record, RechargeProfitExample example) {
        return rechargeProfitMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(RechargeProfit record, RechargeProfitExample example) {
        return rechargeProfitMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(RechargeProfit record) {
        return rechargeProfitMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(RechargeProfit record) {
        return rechargeProfitMapper.updateByPrimaryKey(record);
    }

    @Override
    public Integer countByAll(String parentId) {
        return rechargeProfitMapper.countByAll(parentId) ;
    }

    @Override
    public List<RechargeProfit> selectByAll(Page page, String parentId) {
        return rechargeProfitMapper.selectByAll(page, parentId);
    }

    @Override
    public BigDecimal countProfitByShopid(String adminUserId) {
        return rechargeProfitMapper.countProfitByShopid(adminUserId);
    }

    @Override
    public Integer countByAllUserId(String userid) {
        return rechargeProfitMapper.countByAllUserId(userid);
    }

    @Override
    public List<RechargeProfit> selectByAllUserId(Page page, String userid) {
        return rechargeProfitMapper.selectByAllUserId(page,userid);
    }
}
